home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
unix
/
ch20
/
20fig17a.wrl
< prev
next >
Wrap
Text File
|
1996-09-23
|
931b
|
49 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Lighting
DirectionalLight {
direction 0.0 -1.0 0.0
ambientIntensity 0.5
},
# Floor
Shape {
appearance Appearance {
material Material { }
}
geometry Box { size 8.0 0.01 8.0 }
},
# Spheres
Transform {
translation 0.0 4.0 2.0
children Shape {
appearance Appearance {
material Material { diffuseColor 1.0 1.0 0.0 }
}
geometry Sphere { }
}
},
Transform {
translation 2.0 2.0 -2.0
children Shape {
appearance Appearance {
material Material { diffuseColor 0.0 1.0 0.0 }
}
geometry Sphere { radius 2.0 }
}
},
Transform {
translation -2.0 2.5 0.0
children Shape {
appearance Appearance {
material Material { diffuseColor 0.0 1.0 1.0 }
}
geometry Sphere { radius 0.75 }
}
}
]
}